<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒子模型下的登录实现</title>
  <style>

       .container{
            width: 960px;
            margin-left: auto;
            margin-right: auto;
            border: 1px solid;
       }

       .login-box{
           width: 360px;

           background-color: greenyellow;

           margin-left: 360px;
           margin-top: 300px;

           padding: 10px;
       }

       .row{
            padding: 5px;
       }

       .center{
           text-align: center;
       }

       .btn {
             display: inline-block;
             width: 60px;
             margin-left: 12px;
       }
  </style>
</head>
<body>


<div class="container">

      <div class="login-box">
          <div class="row">
               <h1>TS-人事管理系统-<small>登录</small></h1>
          </div>
          <div class="row">
              <hr>
          </div>
          <div class="row center">
              用户名 : <input>
          </div>
          <div class="row center">
              &nbsp;&nbsp;密码 ：<input type="text">
          </div>
          <div class="row center">
               <button class="btn">登录</button><button class="btn">取消</button>
          </div>
      </div>
</div>
</body>
</html>